
function Person(name, age) {
    this.name = name
    this.age = age
}

Person.prototype.info = function() {
    console.log(this.name + ' ' + this.age);
}

let zhangSanPerson = new Person("张三", '20')
zhangSanPerson.info()